package com.yjd.comm.sms.service;

import java.util.Map;

import com.yjd.comm.base.model.ResultModel;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.sms.model.SmsChannelModel;

/**
 * 短信通道服务层
 * 
 * @author ready
 * @date 2014-8-7
 */
public interface ISmsChannelService extends IBaseService {
	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ResultModel insert(SmsChannelModel model) throws Exception;

	/**
	 * 根据文件服务id删除对象
	 * 
	 * @param idFsService
	 *            文件服务id
	 * @return
	 * @throws Exception
	 */
	public boolean delete(Long idSmsChannel) throws Exception;

	/**
	 * 根据Map中的参数删除对象
	 * 
	 * @param paramMap
	 * @return
	 * @throws Exception
	 */
	public boolean deleteByMap(Map<Object, Object> paramMap) throws Exception;

	/**
	 * 新增
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public ResultModel update(SmsChannelModel model) throws Exception;

	/**
	 * 根据渠短信渠道编码获取短信渠道信息
	 * 
	 * @param code
	 * @return
	 * @throws Exception
	 */
	public SmsChannelModel getSmsChannelModelByCode(String code)
			throws Exception;
}
